package myky.com.doctorapp.contract;

import java.util.List;

import io.reactivex.Observable;
import myky.com.doctorapp.entity.HealthEntity;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.base.BaseView;

public interface NewSubFragmentContract {
    interface Model {

        /**
         * 获取首页健康资讯内容
         *
         * @return
         */
        Observable<BaseEntity<HealthEntity.PayLoadBean>> getHealthList(String tagId, String params);
        Observable<BaseEntity<HealthEntity.PayLoadBean>> getMoreHealthList(String tagId, String params);
    }

    interface View extends BaseView<List<HealthEntity.PayLoadBean.ArticleListBean>> {
        void showHealthtList(List<HealthEntity.PayLoadBean.ArticleListBean> healthlist);
        void showMoreHealthtList(List<HealthEntity.PayLoadBean.ArticleListBean> healthlist);
    }

    interface Presenter {
        void getHealthList(String tagId, String params);
        void getMoreHealthList(String tagId, String params);
    }
}
